package com.uenpay.im.service;

import com.qyx.android.message.type.MsgContentType;
import com.uenpay.im.IMApplication;
import com.uenpay.im.R;

/**
 * @Author: SL
 * @Date: 2017/3/13 15:50
 * @CopyRight: http://www.qiyunxin.com
 * @Parameter: TODO
 * @Function: 消息内容类型转文本
 */
public class MsgContentType2Name {

    public static String GetMsgContentTypeName(int category) {
        switch (category) {
            case MsgContentType.PIC:
                return IMApplication.getAppContext().getResources().getString(
                        R.string.last_image_message);
            case MsgContentType.GIF:
                return IMApplication.getAppContext().getResources().getString(
                        R.string.last_gif_message);
            case MsgContentType.AUDIO:
                return IMApplication.getAppContext().getResources().getString(
                        R.string.last_record_message);
            case MsgContentType.VIDEO:
                return IMApplication.getAppContext().getResources().getString(
                        R.string.last_audio_message);
            case MsgContentType.FILE:
                return IMApplication.getAppContext().getResources().getString(
                        R.string.last_file_message);
            case MsgContentType.GIF_EXP:
                return IMApplication.getAppContext().getResources().getString(
                        R.string.last_gif_exp_message);
            case MsgContentType.LOCATION:
                return IMApplication.getAppContext().getResources().getString(
                        R.string.last_location_message);
            case MsgContentType.BUSINESS_CRAD:
                return IMApplication.getAppContext().getResources().getString(R.string.last_crad);
            case MsgContentType.RED:
                return IMApplication.getAppContext().getResources().getString(R.string.last_red);
            case MsgContentType.TRANSFER_ACCOUNTS:
                return IMApplication.getAppContext().getResources().getString(R.string.last_transfer);
            case MsgContentType.REQUEST_VIDEO_CHAT:
                return IMApplication.getAppContext().getResources()
                        .getString(R.string.last_video_chat);
            case MsgContentType.OA_APPROVAL:
                return IMApplication.getAppContext().getResources().getString(R.string.last_approval);
            case MsgContentType.OA_REIMBURSEMENT:
                return IMApplication.getAppContext().getResources().getString(
                        R.string.last_reimbursement);
            case MsgContentType.OA_NOTICE:
                return IMApplication.getAppContext().getResources().getString(R.string.last_notice);
            case MsgContentType.OA_TASK:
                return IMApplication.getAppContext().getResources().getString(R.string.last_task);
            case MsgContentType.CROWD_FUND:
                return IMApplication.getAppContext().getResources().getString(R.string.last_crowdfund);
            case MsgContentType.PUBLIC_NUM_NEWS:
                return IMApplication.getAppContext().getResources().getString(R.string.last_news_message);

        }
        return "";
    }
}
